/**
 * Created by IntelliJ IDEA.
 * User: Egor
 * Date: 13.12.11
 * Time: 21:00
 * To change this template use File | Settings | File Templates.
 */
package org.electronic.registration.event {
import flash.events.Event;

import mx.collections.ArrayCollection;

import org.electronic.registration.bo.SchedulerEntry;

public class SchedulerEvent extends Event {
    public static const SCHEDULER_LOADED:String = "SCHEDULER_LOADED";
    public static const SCHEDULER_SELECTED:String = "SCHEDULER_SELECTED";

    private var _schedulerDataProvider:ArrayCollection;
    private var _schedulerEntry:SchedulerEntry;

    public function SchedulerEvent(type:String) {
        super(type, false, false)
    }

    public function setScheduler(dataProvider:ArrayCollection):void {
        _schedulerDataProvider = dataProvider;
    }

    public function get schedulerDataProvider():ArrayCollection {
        return _schedulerDataProvider;
    }


    public function get schedulerEntry():SchedulerEntry {
        return _schedulerEntry;
    }

    public function set schedulerEntry(value:SchedulerEntry):void {
        _schedulerEntry = value;
    }
}
}
